<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <script>
    console.log(location.search)  //拿到跳转过来时url附带的数据
  </script>
</body>
</html>